<div class="bjui-pageContent">
  <form action="{:U('cancelOrder')}" id="j_form_form" class="pageForm" data-toggle="validate">
    <input type="hidden" name="order_id" value="{:I('orderId')}">
    <table class="tbl" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#C9C9C9">
      <tbody>
        <tr>
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tbody>
                <tr>
                  <td width="1" bgcolor="#C9C9C9"></td>
                  <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="10">
                      <tbody>
                        <tr>
                          <td><div style="padding-bottom: 8px; clear: both;"> <b><font class="red">提示：</font></b>当前一共有<span id="lblTotalCount" style="color:Red;">{$record_num}</span>条记录<br>
                            </div>
                            <div style="padding-bottom: 6px; padding-left: 32px; clear: both;margin-top: 10px;"> <a class="btn btn-green" data-toggle="navtab" data-options="{id:'Order{$info['order_sn']}', url:'{:U('AfterSales/addRecord?orderId='.$info['order_id'])}',  title:'{$info.order_sn}-添加售后'}">新建售后记录</a> </div>
                            <span id="lblNoRecord"></span>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_List_Table" rules="none" style="border:1px solid #ddd;margin-top: 10px;">
                              <tbody>
                                <tr class="Main_List_Table_Tr1">
                                  <td width="22%">售后记录号<br>
                                    退款单编号</td>
                                  <td width="18%">出库单号</td>
                                  <td width="15%">创建时间</td>
                                  <td width="15%">状态</td>
                                  <td width="18%">售后类型</td>
                                  <td>操作</td>
                                </tr>
                                <notempty name="afterSales">
                                  <volist name="afterSales" id="record">
                                    <tr>
                                      <td style="line-height: 30px;">{$record.service_sn}<br />
                                        {$record.refund_sn}</td>
                                      <td style="line-height: 30px;">{$record.outbound_sn}</td>
                                      <td style="line-height: 30px;">{:date('Y-m-d H:i:s', $record['time'])}</td>
                                      <td style="line-height: 30px;">{$record.after_sales_status}</td>
                                      <if condition="$record.action_type eq 1">
                                        <td style="line-height: 30px;">退货</td>
                                        <elseif condition="$record.action_type eq 2"/>
                                        <td style="line-height: 30px;">换货</td>
                                      </if>
                                      <td style="line-height: 30px;"><a class="btn btn-green" data-toggle="navtab" data-options="{id:'RD{$record['service_sn']}', url:'{:U('AfterSales/recordDetails?service_sn='.$record['service_sn'].'&navTabId=RD'.$record['service_sn'])}', title:'{$record.service_sn}-售后记录详情'}">查看详情</a></td>
                                    </tr>
                                  </volist>
                                </notempty>
                              </tbody>
                            </table></td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
